home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmSample
- BorderStyle = 1 'Fixed Single
- Caption = "Datum Target Symbol"
- ClientHeight = 3930
- ClientLeft = 6420
- ClientTop = 2910
- ClientWidth = 5250
- KeyPreview = -1 'True
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3930
- ScaleWidth = 5250
- Begin VB.TextBox Text4
- Height = 288
- Left = 3240
- TabIndex = 10
- Text = "Text4"
- Top = 3360
- Width = 972
- End
- Begin VB.TextBox Text3
- Height = 288
- Left = 2040
- TabIndex = 7
- Text = "Text3"
- Top = 1560
- Width = 612
- End
- Begin VB.TextBox Text2
- Height = 288
- Left = 2040
- TabIndex = 5
- Text = "Text2"
- Top = 1080
- Width = 612
- End
- Begin VB.TextBox Text1
- Height = 372
- Left = 840
- TabIndex = 4
- Top = 480
- Width = 492
- End
- Begin VB.TextBox Text5
- Height = 285
- Left = 1800
- TabIndex = 0
- Text = "0.25"
- ToolTipText = "Letter Height"
- Top = 3360
- Width = 975
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Height = 375
- Left = 240
- TabIndex = 1
- Top = 3000
- Width = 1215
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 240
- TabIndex = 3
- Top = 3480
- Width = 1215
- End
- Begin VB.Image Image2
- BorderStyle = 1 'Fixed Single
- Height = 420
- Left = 360
- Picture = "DatumTarg.frx":0000
- Top = 480
- Width = 420
- End
- Begin VB.Label Label5
- Caption = "Symbol Size"
- Height = 252
- Left = 3240
- TabIndex = 11
- Top = 3120
- Width = 972
- End
- Begin VB.Image Image1
- BorderStyle = 1 'Fixed Single
- Height = 420
- Left = 360
- Picture = "DatumTarg.frx":01A2
- Top = 480
- Width = 420
- End
- Begin VB.Label Label4
- Caption = "Target Area Size"
- Height = 252
- Left = 360
- TabIndex = 9
- Top = 120
- Width = 1332
- End
- Begin VB.Label Label3
- Caption = "Target Number"
- Height = 252
- Left = 240
- TabIndex = 8
- Top = 1560
- Width = 1692
- End
- Begin VB.Label Label2
- Caption = "Datum Identifying Letter"
- Height = 252
- Left = 240
- TabIndex = 6
- Top = 1080
- Width = 1692
- End
- Begin VB.Shape Shape2
- BorderColor = &H000000FF&
- Height = 852
- Left = 1680
- Top = 3000
- Width = 1212
- End
- Begin VB.Label Label1
- Caption = "Font Height"
- Height = 252
- Left = 1800
- TabIndex = 2
- Top = 3120
- Width = 972
- End
- Attribute VB_Name = "frmSample"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- '/******************************************************************/
- '/* */
- '/* TurboCAD for Windows */
- '/* Copyright (c) 1993 - 2001 */
- '/* International Microcomputer Software, Inc. */
- '/* (IMSI) */
- '/* All rights reserved. */
- '/* */
- '/******************************************************************/
- ' Storage for read-only property indicating whether
- ' or not the dialog box was cancelled. Default is
- ' False. Note that the declaration is Private, so
- ' that the value cannot be set from the OLE client
- ' application. The client reads the value using the
- ' DialogCancelled property.
- Private blnDialogCanceled As Boolean
- Private Im00%, Im10%
- Private Str10$, Str20$, Str30$, Str40$, Str50$
- Private LetterHeight0$
- ' Read-only property indicating cancellation of the
- ' dialog.
- Property Get DialogCanceled() As Boolean
- DialogCanceled = blnDialogCanceled
- End Property
- Private Sub cmdCancel_Click()
- ' Set the value of the read-only property that
- ' tells the caller the dialog was cancelled.
- Call EscClick
- Me.Hide
- End Sub
- Private Sub cmdOK_Click()
- Me.Hide
- End Sub
- Private Sub Form_KeyPress(KeyAscii As Integer)
- If KeyAscii = 27 Then Call EscClick
- End Sub
- Private Sub EscClick()
- Me.Hide
- End Sub
- Private Sub Form_Load()
- If ImDiam = 0 Then
- Image1.Enabled = False
- Image1.Visible = False
- Image2.Enabled = True
- Image2.Visible = True
- Else
- Image2.Enabled = False
- Image2.Visible = False
- Image1.Enabled = True
- Image1.Visible = True
- End If
- End Sub
- Private Sub Image1_Click()
- Image1.Enabled = False
- Image1.Visible = False
- Image2.Enabled = True
- Image2.Visible = True
- ImDiam = 0
- End Sub
- Private Sub Image2_Click()
- Image2.Enabled = False
- Image2.Visible = False
- Image1.Enabled = True
- Image1.Visible = True
- ImDiam = 1
- End Sub
-